evtchn: implement EVTCHNOP_set_priority and add the set_priority hook
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 14 Oct 2013 08:21:06 +0000 (10:21 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 14 Oct 2013 08:21:06 +0000 (10:21 +0200)
commitedc8872aeb4a6e6a50775d6088aab97324ee3e15
treeeb0ffab200c32152814c1b07177cb07b71c4b7f0
parentd2d50c2f308f8b5a9e30cb4a4bebf23aa81211f5
evtchn: implement EVTCHNOP_set_priority and add the set_priority hook

Implement EVTCHNOP_set_priority.  A new set_priority hook added to
struct evtchn_port_ops will do the ABI specific validation and setup.

If an ABI does not provide a set_priority hook (as is the case of the
2-level ABI), the sub-op will return -ENOSYS.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/common/event_channel.c
xen/include/xen/event.h